<div class="max-height">
    <div class="input-group tool-bar">
        <button type="button" class="btn btn-default" ng-click="create()">
            <span class="fa fa-plus"></span> 添加一级菜单
        </button>
    </div>
    <a-tree-grid name="sysMenuTree" option="options" style="height: calc(100% - 45px);"></a-tree-grid>
</div>
<script type="text/ng-template" id="sysMenuDialog">
    <div class="panel panel-default">
        <div class="panel-body">
            <form class="form-horizontal" name="sysMenuForm" ng-submit="submit()">
                <input type="hidden" ng-model="sysMenu.id">
                <input type="hidden" ng-model="sysMenu.ik">
                <input type="hidden" ng-model="sysMenu.upIk">
                <input type="hidden" ng-model="sysMenu.isLeaf">
                <div class="form-group" ng-class="{'has-error': sysMenuForm.name.$error.required}">
                    <label class="col-lg-3 control-label">菜单名称:</label>
                    <div class="col-lg-9">
                        <input type="text" name="name" required class="form-control" ng-model="sysMenu.name" placeholder="菜单名称">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">菜单链接:</label>
                    <div class="col-lg-9">
                        <input type="text" class="form-control" ng-model="sysMenu.sref" placeholder="菜单链接">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label">菜单图标:</label>
                    <div class="col-lg-9">
                        <input type="text" class="form-control" ng-model="sysMenu.icon" placeholder="菜单图标">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-9 col-lg-3">
                        <button type="submit" class="btn btn-lg btn-primary" ng-disabled="sysMenuForm.$invalid">确认</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</script>